package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tanhua.domain.db.BlackList;
import com.tanhua.domain.db.UserInfo;
import org.apache.ibatis.annotations.Select;

public interface BlackListMapper extends BaseMapper<BlackList> {

    @Select("SELECT u.* FROM tb_black_list b , tb_user_info u WHERE " +
            "   b.black_user_id=u.id AND b.user_id=#{userId}")
    IPage<UserInfo> queryBlacklist(Page<UserInfo> page1, Long userId);
}
